{include file="admin/header.html} 
<div class="title">
    <h3>新闻管理-{$subtitle}</h3>
</div>
{if $is_edit eq true}
<div class="condition">
    新闻编号:{$news.newsid} | 创建时间:{$news.createtime} | 创建者:{$news.u.realname}
</div>
{/if}
{if !empty($msg)}
<div class="condition">
    {$msg}
</div>
{/if}
<div class="table_zone">
    <form method="post" action="{if $is_edit eq true}/admin/editnews?newsid={$news.newsid}{else}/admin/addnews{/if}">
        <table class="modifytable">
            <tr>
                <td width="100px">新闻类别</td>
                <td>
                    <select name="newstype">
                        {foreach from=$show_types item=v}
                        <option value="{$v}">{$v}</option>
                        {/foreach}
                    </select>
                </td>
            </tr><tr>
                <td>新闻标题</td>
                <td>
                    <input type="text" name="title" style="width:300px"/>
                </td>
            </tr><tr>
                <td>内容</td>
                <td><textarea name="content" style="width:650px;height:600px;"></textarea></td>
            </tr><tr>
                <td>备注</td>
                <td><input type="text" name="remark" style="width:300px"/></td>
            </tr>
            <tr>
                <td style="text-align: center" colspan="2"><input type="submit" value="提交"/></td>
            </tr>
        </table>
    </form>
</div>
{literal}
<script>
    var editor;
    KindEditor.ready(function(K) {
        editor = K.create("[name='content']",{
            uploadJson: "/ajax/upload"
        });
    });
</script>
{/literal}
{include file="admin/footer.html"}